package com.supor.aiot.basket.ui.basket;

import android.os.Bundle;
import android.os.PersistableBundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.android.baseconfig.base.BaseActivity;
import com.android.baseconfig.base.BasePresenter;
import com.android.baseconfig.common.views.CustomTitleBar;
import com.supor.aiot.basket.R;
import com.supor.aiot.common.arouter.PathUrl;

@Route(path = PathUrl.PATH_BASKET)
public class BasketOuterActivity extends BaseActivity {
    CustomTitleBar customTitleBar;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        customTitleBar=findViewById(R.id.recipe_titlebar);
        customTitleBar.setIvLeftOnClickListener(view -> {
            BasketOuterActivity.this.finish();
        });
        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction()
                    .replace(R.id.container, BasketFragment.newInstance())
                    .commitNow();
        }
    }


    @Override
    protected int resourceId() {
        return R.layout.basket_activity;
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }
}
